<?php
$this->breadcrumbs=array(
    'Contact Us'
);
?>
<div class="span8" id="divMain">

    <h1>Contact Us</h1>
    <h3 style="color:#FF6633;"><?php echo @$_GET['msg']; ?></h3>
    <!--Start Contact form -->		                                                
    <form name="enq" method="post" action="email/" onsubmit="return validation();">
        <fieldset>

            <input type="text" name="name" id="name" value=""  class="input-block-level" placeholder="Name" />
            <input type="text" name="email" id="email" value="" class="input-block-level" placeholder="Email" />
            <textarea rows="11" name="message" id="message" class="input-block-level" placeholder="Comments"></textarea>
            <div class="actions">
                <input type="submit" value="Send Your Message" name="submit" id="submitButton" class="btn btn-info pull-right" title="Click here to submit your message!" />
            </div>

        </fieldset>
    </form>  				 
    <!--End Contact form -->											 
</div>

<!--Edit Sidebar Content here-->	
<div class="span4">

    <div class="sidebox">
        <h3 class="sidebox-title">Contact Information</h3>
        <p>
        <address>
            <strong>Avance Recruitment (Thailand) Co.,Ltd</strong><br />
            Glas Haus Building Co.,Ltd 1,  902/2 (9th Floor),<br>
            Soi Sukhumvit 25 (Daengprasert),<br>
            Sukhumvit road,  Khlongtoeinuea, Wattana, Bangkok 10110, Thailand
            <ul class="the-icons">
                <li><abbr title="Phone"><i class="icon-phone icon"></i> Tel:</abbr> 02-665-2929</li>
                <li><abbr title="Fax"><i class="icon-print icon"></i> Fax:</abbr> 02-665-2929</li>
                <li><abbr title="Mobile"><i class="icon-mobile-phone icon"></i> Mobile:</abbr> 086-028-7118 (<?= $lang == 'en' ? 'Kitagawa' : 'คุณคิตะกาว่า' ?>)(JP)</li>
                <li><abbr title="Mobile"><i class="icon-mobile-phone icon"></i> Mobile:</abbr> 091-223-6922 (<?= $lang == 'en' ? 'Nan' : 'คุณแนน' ?>)(JP,ENG)</li>
                <li><abbr title="Mobile"><i class="icon-mobile-phone icon"></i> Mobile:</abbr> 092-406-0429 (<?= $lang == 'en' ? 'Ta' : 'คุณตา' ?>)(TH)</li>
            </ul>
        </address> 
    <!--        <address>  <strong>Email</strong><br />
                <a href="mailto:#">first.last@gmail.com</a></address>  -->
        </p>     

        <!-- Start Side Categories -->
        <h4 class="sidebox-title">Our Office</h4>
        <iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/ms?t=m&amp;msa=0&amp;msid=200494399869454918695.0004f113a1ddb9686f3e4&amp;source=embed&amp;ie=UTF8&amp;ll=13.736092,100.563397&amp;spn=0.014591,0.018239&amp;z=15&amp;output=embed"></iframe>
        <br /><small><?= $lang == 'en' ? '' : 'ดู' ?> <a href="https://www.google.com/maps/ms?t=m&amp;msa=0&amp;msid=200494399869454918695.0004f113a1ddb9686f3e4&amp;source=embed&amp;ie=UTF8&amp;ll=13.736092,100.563397&amp;spn=0.014591,0.018239&amp;z=15" style="color:#0000FF;text-align:left">Avance Recruitment (Thailand) Co.,Ltd.</a> <?= $lang == 'en' ? 'View Larger Map' : 'ในแผนที่ขนาดใหญ่กว่า' ?></small>

        <!-- End Side Categories -->

    </div>

</div>
<!--/End Sidebar Content-->
<script>

    function validation()
    {

        var contactname=document.enq.name.value;
        var name_exp=/^[A-Za-z\s]+$/;
        if(contactname=='')
        {
            alert("Name Field Should Not Be Empty!");
            document.enq.name.focus();
            return false;
        }
        else if(!contactname.match(name_exp))
        {
            alert("Invalid Name field!");
            document.enq.name.focus();
            return false;
        }

        var email=document.enq.email.value;
        //var email_exp=/^[A-Za-z0-9\.-_\$]+@[A-Za-z]+\.[a-z]{2,4}$/;
        var email_exp=/^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
        if(email=='')
        {
            alert("Please Enter Email-Id!");
            document.enq.email.focus();
            return false;
        }
        else if(!email.match(email_exp))
        {
            alert("Invalid Email ID !");
            document.enq.email.focus();
            return false;
        }


        var message=document.enq.message.value;
        if(message=='')
        {
            alert("Query Field Should Not Be Empty!");
            document.enq.message.focus();
            return false;
        }
        return true;
    }

</script>
<style>
    .the-icons {
        margin: 0 0 0 0 !important;
    }
</style>